package co.fitstart.admin.service;

import java.util.List;

import com.demo2do.core.support.Page;

import co.fitstart.admin.entity.search.CreditOrderSearch;
import co.fitstart.entity.credit.order.CreditOrder;
import co.fitstart.entity.credit.order.CreditOrderStatus;
import co.fitstart.entity.credit.product.CreditProductType;

/**
 * 
 * @author houtao
 *
 */
public interface CreditOrderService extends DataService<CreditOrder>{
	
	/**
	 * 
	 * @param status
	 * @param type
	 * @param page
	 * @return
	 */
	public List<CreditOrder> list(CreditOrderStatus status, CreditProductType type, Page page);
	
	/**
	 * 
	 * @param orderSearch
	 * @param page
	 * @return
	 */
	public List<CreditOrder> search(CreditOrderSearch orderSearch, Page page);
	
	/**
	 * 
	 * @param orderSearch
	 * @return
	 */
	public int totalOrder(CreditOrderSearch orderSearch);

	/**
	 * 
	 * @param order
	 */
	public void edit(CreditOrder order);
}
